import request from 'src/utils/request'

const baseUrl = process.env.BASE_API

// 获取项目列表
export function findAuctionProjectList(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/findProjectList`, params)
}

// 获取项目附件
export function findAuctionProjectFile(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/findAuctionProjectFile`, params)
}

// 通过车辆id获取车辆信息
export function carDetailById(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/carDetailById`, params)
}

// 车辆关注/取消关注
export function carAttention(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/carAttention`, params)
}

// 通过车辆id获取车辆图片信息
export function carImagesById(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/carImagesById`, params)
}

// 获取竞拍项目报名信息
export function getAuctionApplyInfo(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/getAuctionApplyInfo`, params)
}

// 竞拍项目报名
export function saveInviteCustomer(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/saveInviteCustomer`, params)
}

// 取消报名
export function doCancelApply(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/cancelApply`, params)
}

// 小圈项目详情
export function xqProjectDetail(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/projectDetail`, params)
}

// 查看竞拍项目是否已阅读规则
export function findsfyd(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/findsfyd`, params)
}

// 修改竞拍项目是否已阅读规则
export function updateSfyd(params) {
  return request.post(`${baseUrl}/api/faw-app/auction-project/updatesfyd`, params)
}
